package com.freight.base.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class UserVo {

    @ApiModelProperty(value = "用户Id")
    private Long Id;

    @ApiModelProperty(value = "用户类型 1司机  0货主")
    private Integer userType;

    @ApiModelProperty(value = "用户名/昵称/姓名")
    private String nickName;

    @ApiModelProperty(value = "手机")
    private String mobile;

    public void setMobile(String mobile) {
        this.mobile = mobile.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
    }
}
